#include <stdio.h>

void main(){
	int nrows=0,ncols=0,q=0,i=0,sum=0,ret2=0;
	double ret1=0;
	scanf("%d %d %d", &nrows, &ncols, &q);
	int o[nrows][ncols];
	int *p=&o[0][0];
	while (i<nrows*ncols){
		scanf("%d", p);
		p++;
		i++;
	}
	p=&o[0][0];
	p=p+(q-1);
	for ( i=0;i<nrows;i++ ){
		ret1+=*p;
		p+=ncols;
	}
	ret1/=nrows;
	p=&o[0][0];
	i=1;
	while ( i<=nrows*ncols ){
		sum+=*p;
		p++;
		if ( i%ncols==0 ){
			ret2 = ret2>sum?ret2:sum;
			sum = 0;
		}
		i++;	
	}
	printf("%f %d", ret1, ret2);
}
